import { createApp,h} from 'vue'
import App from './App.vue'
import '@/styles/index.scss'
import 'animate.css';

//element-plus
import ElementPlus, {ElCollapseTransition} from "element-plus";
import "element-plus/dist/index.css";
// fade/zoom
import 'element-plus/theme-chalk/base.css'
//yjs三维地图
import yjs3dPlugin from "@/components/gisBkg/yjsmap/yjs3d-plugin";
// echarts-for-vue
import { plugin } from 'echarts-for-vue';
import * as echarts from 'echarts';

//axios
import axios from 'axios'

//router
import router from './router'

//api
import api from './interface/index.js'

const app = createApp(App);
app.use(plugin, { echarts, h });
app.use(ElementPlus);
app.use(yjs3dPlugin);
app.use(router)
app.config.globalProperties.axios = axios
app.component(ElCollapseTransition.name, ElCollapseTransition)
app.mount('#app')
app.config.globalProperties.api=api
